package test;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;

import org.jobtask.config.SystemIdentification;

public class Sample {

	public static void main(String[] args) throws ParseException, IOException {
	    Runtime  rrr=Runtime.getRuntime();
	    Process process=rrr.exec("cmd /C Pan.bat /norep /level Debug /file E:/ETLDataWork/test/123.ktr");
	    InputStream fis = process.getErrorStream(); 
        BufferedReader br = new BufferedReader(new InputStreamReader(fis)); 
        String line="";
        while ((line = br.readLine()) != null) {
       	 System.out.println(line);
       } 
	}
}
